package com.stu.student_back_end.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.stu.student_back_end.common.Result;
import com.stu.student_back_end.controller.dto.AccountDTO;
import com.stu.student_back_end.controller.dto.CountDTO;
import com.stu.student_back_end.controller.dto.LoginDTO;
import com.stu.student_back_end.controller.dto.PageDTO;
import com.stu.student_back_end.entity.TblAccount;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

public interface ITblAccountService extends IService<TblAccount> {

    //登录
    Result login(AccountDTO accountDTO);

    //添加
    Boolean addAccount(TblAccount account);

    //分页查询
    Page<TblAccount> queryAccount(PageDTO pageDTO);

    //删除account记录和building的某个字段值
    boolean delAccountAndBuilding(int id,String name);

    //查询宿管数
    CountDTO queryAccountCount();
}
